<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 通过这种方式我们就可以直接让这四个class名字不同的div都用同一个样式 */
        div[class^='icon']{
            color: red;
        }

        section[class$='bg']{
            color: blue;
        }

        span[class*='z']{
            color: purple;
        }
        /* 类选择器、属性选择器、伪类选择器权重都是10 */
    </style>
</head>
<body>
    <div class="icon1">123</div>
    <div class="icon2">123</div>
    <div class="icon3">123</div>
    <div class="icon4">123</div>

    <section class="mgn-bg">莫甘娜</section>
    <section class="ks-bg">卡莎</section>

    <span class="zxz">zzzzzzz</span>
</body>
</html>